package uni.androidgame.gameobjects;


import android.graphics.Canvas;
import android.graphics.Paint;
import uni.androidgame.*;

import java.lang.*;

public class Player extends uni.androidgame.Character
{
    private Tile _currentTile;
    private Paint _color;
    private Item _selectedItem;
    public boolean isMoving()
    {
        return actionQueue.get(0) != null && actionQueue.get(0).getType() == GameAction.Type.Move;
    }

    public Player(Tile tile,int startStr, int startHp,int color)
    {
        super(tile,"Player",startStr,startHp);
        currentHp = 50;
        _color = new Paint();
        _color.setColor(color);
    }

    public void draw(Canvas canvas)
    {
        canvas.drawCircle(_position.x+ DungeonMap.TileSize/2,_position.y+DungeonMap.TileSize/2,DungeonMap.TileSize/3, _color);
    }

    @Override
    public void kill()
    {
        super.kill();
    }
}
